package cn.restcloud.springboot.listener;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
 * springboot 启动时需要启动时，必须一起初始化的类
 */


@Order(value=1)
@Component
public class RestCloudStartupListener implements  CommandLineRunner  {

//	@Autowired
//	MongoClient mongoClient;
//	
//	@Autowired
//	Scheduler scheduler;
//	
	@Override
	public void run(String... args) throws Exception {
		//这里放启动后要运行的程序
//		ServletInitApplication.init(mongoClient,scheduler);
	}
	
}